package com.xiaoxu.intranetweb.mybatisplusSzappdb.Dic;

import org.springframework.stereotype.Component;

@Component
public class CIcCardsInfoDic {
//    是否代扣CARDINF_AGENT0.否 1.是
    public String getCardinfAgent(Integer cardinfAgent) {
        if (cardinfAgent == null)
            return "未知";
        else
        if (cardinfAgent == 0) {
            return "否";
        } else if (cardinfAgent == 1) {
            return "是";
        } else {
            return "未知";
        }
    }
//    是否免过皮重(/吨)cardinfExcuseTare0.否 1.是
    public String getCardinfExcuseTare(Integer cardinfExcuseTare) {
        if (cardinfExcuseTare == null)
            return "未知";
        else
        if (cardinfExcuseTare == 0) {
            return "否";
        } else if (cardinfExcuseTare == 1) {
            return "是";
        } else {
            return "未知";
        }
    }
//    ic卡是否发放CARDINF_PUTOUTED
    public String getCardinfPutouted(Integer cardinfPutouted) {
        if (cardinfPutouted == null)
            return "未知";
        else
        if (cardinfPutouted == 0) {
            return "否";
        } else if (cardinfPutouted == 1) {
            return "是";
        } else {
            return "未知";
        }
    }
//    是否挂失CARDINF_REPORT_LOST
    public String getCardinfReportLost(Integer cardinfReportLost) {
        if (cardinfReportLost == null)
            return "未知";
        else
        if (cardinfReportLost == 0) {
            return "否";
        } else if (cardinfReportLost == 1) {
            return "是";
        } else {
            return "未知";
        }
    }
//    卡片是否有效CARDINF_CUR_VALID
    public String getCardinfCurValid(Integer cardinfCurValid) {
        if (cardinfCurValid == null)
            return "未知";
        else
        if (cardinfCurValid == 0) {
            return "否";
        } else if (cardinfCurValid == 1) {
            return "是";
        } else {
            return "未知";
        }
    }

}
